//存放所有封装好的接口
//引入get方法
import { get, post } from "./index"

//新人专享接口
export const getNew = () => get("/getnew")
//获取商品信息首页
export const getIndexGoods = () => get("/getindexgoods")
//万人团接口
export const getGroupon = () => get("/getgroupon")
//商品分类接口
export const getCate = () => get("/getcate")
//分类商品接口
export const getGoods = params => get("/getgoods", params)
//获取商品详情
export const getGoodsInfo = params => get("/getgoodsinfo", params)
//优惠券
export const getCoupon = () => get("/getcoupon")
//购物车列表接口
export const getCartList = params => get("/cartlist", params)
//购物车添加接口
export const addCart = data => post("/cartadd", data)
//购物车删除接口
export const delCart = data => post("/cartdelete", data)
//注册接口
export const Register = data => post("/register", data)
//登录接口
export const Login = data => post("/login", data)
//轮播图接口
export const getBanner = () => get("/getbanner")